package com.smzd.projforge.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;
import com.smzd.projforge.domain.MTMRelation;
import com.smzd.projforge.mappers.MTMRelationMapper;

@Component
public class MTMRelationDao extends AbstractDao<MTMRelation> {
	@Autowired
	private MTMRelationMapper mapper;
	@Override
	protected IMapper<MTMRelation> getMapper() {
		return mapper;
	}
	@Override
	public void insert(MTMRelation relation){
		throw new RuntimeException("已废弃操作异常");
	}
	
	public void insertByMSClasses(MTMRelation relation){
		mapper.insertByMSClasses(relation);
	}
	
	public void insertByMSFields(MTMRelation relation){
		mapper.insertByMSFields(relation);
	}
	
	public void saveMTMRelations(List<MTMRelation> toAdd,
			List<MTMRelation> toDel) {
		throw new RuntimeException("未定义错误");
	}
	public List<MTMRelation> getMTMRelationsBySlaveId(Integer id) {
		throw new RuntimeException("未定义错误");
	}

}
